package com.ruoyi.easyfame.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 专家问答对象 tb_qna
 * 
 * @author xhb
 * @date 2025-08-19
 */
public class Qna extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问答ID */
    private Long id;

    /** 问题标题 */
    @Excel(name = "问题标题")
    private String title;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String content;

    /** 问题图片URL，多个用逗号分隔 */
    @Excel(name = "问题图片URL，多个用逗号分隔")
    private String images;

    /** 提问用户ID */
    private Long userId;

    /** 提问用户名 */
    @Excel(name = "提问用户名")
    private String userName;

    /** 专家用户ID */
    private Long expertId;

    /** 专家用户名 */
    @Excel(name = "专家用户名")
    private String expertName;

    /** 专家回答 */
    @Excel(name = "专家回答")
    private String answer;

    /** 回答图片URL，多个用逗号分隔 */
    @Excel(name = "回答图片URL，多个用逗号分隔")
    private String answerImages;

    /** 回答时间 */
    private Date answerTime;

    /** 状态（0待解决 1已解决 2已关闭） */
    @Excel(name = "状态", readConverterExp = "0=待解决,1=已解决,2=已关闭")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setExpertId(Long expertId) 
    {
        this.expertId = expertId;
    }

    public Long getExpertId() 
    {
        return expertId;
    }

    public void setExpertName(String expertName) 
    {
        this.expertName = expertName;
    }

    public String getExpertName() 
    {
        return expertName;
    }

    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }

    public void setAnswerImages(String answerImages) 
    {
        this.answerImages = answerImages;
    }

    public String getAnswerImages() 
    {
        return answerImages;
    }

    public void setAnswerTime(Date answerTime) 
    {
        this.answerTime = answerTime;
    }

    public Date getAnswerTime() 
    {
        return answerTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("images", getImages())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("expertId", getExpertId())
            .append("expertName", getExpertName())
            .append("answer", getAnswer())
            .append("answerImages", getAnswerImages())
            .append("answerTime", getAnswerTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
